[CONSOLE] Always specify CON_ENABLED in Linux ocnsole driver.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 10 Aug 2006 09:39:58 +0000 (10:39 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 10 Aug 2006 09:39:58 +0000 (10:39 +0100)
I cannot think of any circumstance that the Xen console device would
not have CON_ENABLED.  With out this, DomUs that panic() before the
init process has started (and maybe even after) do not get output hi
priority log_levels (like panic()) from LOG_BUF().

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
linux-2.6-xen-sparse/drivers/xen/console/console.c

index ff1cfe2d7e6cc4e3e203c0ae755e0bcc949cffe3..b9dd2f67b1bcf402a26665b66e709256062a5457 100644 (file)
@@ -178,7 +178,7 @@ static struct tty_driver *kcons_device(struct console *c, int *index)
 
 static struct console kcons_info = {
        .device = kcons_device,
-       .flags  = CON_PRINTBUFFER,
+       .flags  = CON_PRINTBUFFER | CON_ENABLED,
        .index  = -1,
 };
 
@@ -192,8 +192,6 @@ static int __init xen_console_init(void)
                if (xc_mode == XC_DEFAULT)
                        xc_mode = XC_SERIAL;
                kcons_info.write = kcons_write_dom0;
-               if (xc_mode == XC_SERIAL)
-                       kcons_info.flags |= CON_ENABLED;
        } else {
                if (xc_mode == XC_DEFAULT)
                        xc_mode = XC_TTY;